package com.nbsaas.boot.student.rest.convert;

import com.nbsaas.boot.student.data.entity.Student;
import com.nbsaas.boot.student.api.domain.response.StudentResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;

/**
* 实体对象转化成响应对象
*/

public class StudentResponseConvert  implements Converter<StudentResponse,Student> {

    @Override
    public StudentResponse convert(Student source) {
        StudentResponse  result = new  StudentResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

